package com.avic.modules.dictionaries.domain;

import cn.hutool.core.bean.BeanUtil;
import cn.hutool.core.bean.copier.CopyOptions;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @author zhangzikang 点位字典表
 * @date 2022-08-14
 */
@Data
@TableName("dict_ehr")
@NoArgsConstructor
public class DictEhr {

    @TableId(value="ID", type = IdType.AUTO)
    private Long id;

    // 对应名称
    private String ehrString;

    public void copy(DictEhr source){
        BeanUtil.copyProperties(source,this, CopyOptions.create().setIgnoreNullValue(true));
    }
}
